import Vue from 'vue'
import List from './list.html'
import doublelist from './doublelist.json'
import list from './list.json'
import './index.css'

new Vue({
    el:'#root',
    data:{
        title:'vue指令的学习',
        color:'red',
        list:list,
        doublelist:doublelist,
        rigthList:doublelist[0],
        user:'genggeng',
        boxIsShow:false,
        num:9
    },
   
    methods:{
        changData(index){
            this.rigthList = doublelist[index]
        },
        changeColor(){
            this.color='blue'
        },
        submit(){
            console.log(this.user)
        }
    },
    template:List
})